package com.qingcloud.adminbackend.service.impl;

import com.qingcloud.adminbackend.service.IMailService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 生产环境邮件 服务实现类
 * </p>
 *
 * @author wangjinnan
 * @since 2018-12-27
 */
@Service
@Profile({"jinshan", "devnew", "develop", "test"})
public class ProductMailServiceImpl implements IMailService {

    @Value("${exception.mail.receiver}")
    private String exceMailReceiver;

    /**
     * 发送文本邮件
     *
     * @param subject 主题
     * @param content 内容
     */
    @Override
    @Async("asyncServiceExecutor")
    public void sendText(String subject, String content) {
//        List<String> toList = Arrays.asList(exceMailReceiver.split(","));
//        MailUtil.sendText(toList, subject, content);
    }
}
